﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp20
{
    class IComputermajor:IComputer
    {
        public int English { get; set; }
        public int English1 { get; set; }
        public int English2 { get; set; }
        public int Id { get; set; }
        public string Name { get; set; }
        
        /* int IComputer.Id { get; set; }
         * string IComputer.Name{get;set;}        
        */
         public  void Total() 
        {
            int sum = English + English1 + English2;
            Console.WriteLine("总分为{0}",sum);
        }
         public  void Avg() 
        {
            int avg = (English + English1 + English2) / 3;
            Console.WriteLine("平均分为{0}",avg);
        }

        /* void IComputer.Toatl()
         * {
         * int sum = English + English1 + English2;
         *   Console.WriteLine("总分为{0}",sum);
         * }
         * void IComputer.Avg()
         * {
         * int avg = (English + English1 + English2) / 3;
         *(  Console.WriteLine("平均分为{0}",avg);
         * }
         */
         
    }
}
